package com.project.personal_blog.garbage_classification_management_system.mapper;

import com.project.personal_blog.garbage_classification_management_system.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface loginMapper {
    // 根据用户名和密码查询用户
    @Select("SELECT * FROM user WHERE name = #{username} AND password = #{password}")
    User login(String username, String password);
}
